<?php $this->widget('application.extensions.infieldlabel.InFieldLabel'); ?>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'centers-form',
	'enableAjaxValidation'=>true,
)); ?>
<fieldset>
	<?php echo $form->errorSummary($model); ?>

	<div class="row">
                <?php echo $form->label($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>
</fieldset>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
<script type="text/javascript" charset="utf-8">
/*Forms reset & focus*/
$(document).ready(function(){
    $(':input')
         .not(':button, :submit, :reset, :hidden')
         .val('')
         .removeAttr('checked')
         .removeAttr('selected');
    $(":input:visible:enabled:first").focus();
});

</script>